package com.tt.fashionWebSite.domain;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

@SuppressWarnings("serial")
@Entity
@Table(name = "dat_hang")
@NamedQueries({
      @NamedQuery(name = "getOrderCommon", query = "SELECT c FROM DatHang c") ,
})
public class DatHang implements Serializable {

    public static final String GET_ORDER_ALL = "getOrderCommon";

   @Id
   @Column(name = "MA_DH")
   private String maDH;

   @ManyToOne
   @JoinColumn(name = "MA_TV")
   private ThongTinThanhVien thongTinThanhVien;

   @Column(name = "HO_TEN_NN")
   private String hoTenNN;

   @Column(name = "SDT_NN")
   private String soDTNN;

   @Column(name = "DIA_CHI_NN")
   private String diaChiNN;

   @Column(name = "NGAY_DAT")
   private Date ngayDat;

   @Column(name = "NGAY_GIAO")
   private Date ngayGiao;

   @Column(name = "HOAN_TAT")
   private Long hoanTat;

   @Column(name = "GHI_CHU")
   private String ghiChu;

   @Column(name = "TONG_TIEN")
   private Double tongTien;

   public String getMaDH() {
      return maDH;
   }

   public void setMaDH(String maDH) {
      this.maDH = maDH;
   }

   public ThongTinThanhVien getThongTinThanhVien() {
      return thongTinThanhVien;
   }

   public void setThongTinThanhVien(ThongTinThanhVien thongTinThanhVien) {
      this.thongTinThanhVien = thongTinThanhVien;
   }

   public String getHoTenNN() {
      return hoTenNN;
   }

   public void setHoTenNN(String hoTenNN) {
      this.hoTenNN = hoTenNN;
   }

   public String getSoDTNN() {
      return soDTNN;
   }

   public void setSoDTNN(String soDTNN) {
      this.soDTNN = soDTNN;
   }

   public String getDiaChiNN() {
      return diaChiNN;
   }

   public void setDiaChiNN(String diaChiNN) {
      this.diaChiNN = diaChiNN;
   }

   public Date getNgayDat() {
      return ngayDat;
   }

   public void setNgayDat(Date ngayDat) {
      this.ngayDat = ngayDat;
   }

   public Date getNgayGiao() {
      return ngayGiao;
   }

   public void setNgayGiao(Date ngayGiao) {
      this.ngayGiao = ngayGiao;
   }

   public Long getHoanTat() {
      return hoanTat;
   }

   public void setHoanTat(Long hoanTat) {
      this.hoanTat = hoanTat;
   }

   public String getGhiChu() {
      return ghiChu;
   }

   public void setGhiChu(String ghiChu) {
      this.ghiChu = ghiChu;
   }

   public Double getTongTien() {
      return tongTien;
   }

   public void setTongTien(Double tongTien) {
      this.tongTien = tongTien;
   }
}
